home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 224_01 / ls.hlp < prev    next >
Text File  |  1987-01-01  |  2KB  |  51 lines

  1. NAME
  2.      ls - list contents of directory
  3.  
  4. SYNTAX
  5.      ls [ -adflrst ] name ...
  6.  
  7. DESCRIPTION
  8.      For each directory argument, ls lists the contents of the
  9.      directory; for each file argument, ls repeats its name and
  10.      any other information requested.  By default, the output is
  11.      sorted alphabetically.  When no argument is given, the
  12.      current directory is listed.
  13.  
  14.      The options are:
  15.  
  16.      -l   List in long format, giving file type (see below), size in bytes, 
  17.           and time of last modification for each file. 
  18.  
  19.      -t   Sort by time modified (latest first) instead of by
  20.           name.
  21.  
  22.      -a   List all entries.  Use this option to see read-only, hidden, and
  23.           system files.  This option also will print any files that begin
  24.           with a period (.).
  25.  
  26.      -s   Give size in bytes of each file.
  27.  
  28.      -d   If argument is a directory, list only its name; often
  29.           used with -l to get the status of a directory.
  30.  
  31.      -r   Reverse the order of sort to get reverse alphabetic or
  32.           oldest first as appropriate.
  33.  
  34.      -f   Force each argument to be interpreted as a directory
  35.           and list the name found in each slot.  This option
  36.           turns off -l, -t, -s, and -r, and turns on -a; the
  37.           order is the order in which entries appear in the
  38.           directory.
  39.  
  40.      The mode printed under the -l option contains 4 characters
  41.      which are interpreted as follows: 
  42.  
  43.      R  if the entry is a read-only file;
  44.      H  if the entry is a hidden file;
  45.      S  if the entry is a system file;
  46.      D  if the entry is a directory;
  47.      -  if the entry is not one of the above types.
  48.  
  49.      When the size of the file is listed, a total count of directories, 
  50.      files, and bytes are printed at the end of the list.
  51.